<?php
@session_start();
$PurviewLevel=2;
$CheckChannelID=0;  
$PurviewLevel_Others="sys_vpp_indexad";

require("../../inc/common.inc.php");
require_once("../Admin_ChkPurview.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<TITLE>铭讯EOS网站后台管理</TITLE>
<Meta name="Keywords" Content="济南网站建设 济南网站制作 山东网站建设 济南铭讯软件有限公司">
<Meta name="Description" Content="济南网站制作：铭讯软件专业服务优秀企业，致力于网站建、设网站推广、网络营销一体的全访位网络服务商">
<link rel="stylesheet" href="../images/style.css" type="text/css">
</head>
<script>
var P = window.parent, D = P.loadinndlg();   // 注意！这行代码是每个内容页必须加的内容，否则无法正确显示。
</script>
<script language="javascript" src="/mxsoft/js/func.js"></script>
<style>html,body{ background-color:#FFFFFF;}</style>
<body>
<?php
$id=intval($id);
if ($id==0){
	echo showdialog('请选择要修改的信息');
	exit();
}
$thisinfo=$db->getinfo("select * from mx_weixin_config where id='$id' limit 1");
if (!is_array($thisinfo)){
	echo showdialog('没有要修改的信息');
	exit();
}
if($actions=="setsave"){
	$content=trim($content);
	if ($content==""){
	echo showdialog('信息内容不能为空');
	exit();
	}
	$files=array(
		"content"    =>$content,
		"modidate"   =>date("Y-m-d H:i:s"),
		"modiid"     =>$_SESSION['mxadmin']['userid'],
	);
	$db->exe_update("mx_weixin_config",$files,"id='$id'");
	echo "<script>P.reload();</script>";
	exit();
}
else{
?>
<table width="98%" cellpadding="0" cellspacing="0" align="center" style="margin-top:5px;">
<form name="form1" id="form1" method="post" onsubmit="return check_wx_configmodi()">
<tr><td align="center"><textarea name="content" id="content" rows="5" style="width:92%;"><?php echo $thisinfo["content"];?></textarea></td></tr>
<tr><td align="center" height="50"><input type="submit" name="s" class="button"  value="提 交" /><input type="hidden" name="actions" value="setsave" /></td></tr>
</form>
</table>
<script>
function check_wx_configmodi(){
	if (!CheckLength("content","信息内容")){
		return false;
	}
}
</script>
<?php }?>
</body>
</html>